﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pipes.Ui.Parser
{
  public class ArasParser : IParser
  {
    public string Name
    {
      get { return "Aras Item Parser"; }
    }

    public IEnumerable<Data.IDataRecord> Parse(string value)
    {
      return new IO.StringTextSource(value).Pipe(new Xml.XmlTextReader()).Pipe(new Aras.DataItemReader()).Cast<Data.IDataRecord>();
    }
  }
}
